//package com.zhangkunhao.notes.entity.Do;
//
//import com.zhangkunhao.notes.annotation.TableField;
//import com.zhangkunhao.notes.annotation.TableId;
//import com.zhangkunhao.notes.annotation.TableName;
//
//import java.sql.Timestamp;
//
///**
// * 问题
// *
// * @author 20642
// */
//@TableName(name = "tb_question")
//public class Question {
//    @TableId(value = "id")
//    private Integer id;
//    private String title;
//    private String content;
//    /**
//     * 分类
//     */
//    private String classification;
//    @TableField(value = "publish_user_id")
//    private Integer publishUserId;
//    /**
//     * 点赞数量
//     */
//    @TableField(value = "like_count")
//    private Integer likeCount;
//    /**
//     * 问题的当前状态，1表示没有被举报,0表示被举报
//     */
//    @TableField(value = "report_status")
//    private Integer reportStatus;
//    /**
//     * 问题的举报原因
//     */
//    @TableField(value = "report_illegal_reason")
//    private String reportIllegalReason;
//
//    /**
//     * 问题的审核状态,0表示还没有经过审核，1表示经过审核，-1表示审核不通过
//     */
//    @TableField(value = "check_status")
//    private Integer checkStatus;
//    /**
//     * 问题审核不通过的原因
//     */
//    @TableField(value = "check_illegal_reason")
//    private String checkIllegalReason;
//    /**
//     * 问题的发布时间
//     */
//    @TableField(value = "launch_time")
//    private Timestamp launchTime;
//
//    public Question() {
//        this.likeCount = 0;
//        this.reportStatus = 1;
//        this.reportIllegalReason = "无";
//        this.checkStatus = 0;
//        this.checkIllegalReason = "审核中";
//        this.launchTime = new Timestamp(System.currentTimeMillis());
//    }
//
//    public Question(Integer id, String title, String content, String classification, Integer publishUserId, Integer likeCount, Integer reportStatus, String reportIllegalReason, Integer checkStatus, String checkIllegalReason, Timestamp launchTime) {
//        this.id = id;
//        this.title = title;
//        this.content = content;
//        this.classification = classification;
//        this.publishUserId = publishUserId;
//        this.likeCount = likeCount;
//        this.reportStatus = reportStatus;
//        this.reportIllegalReason = reportIllegalReason;
//        this.checkStatus = checkStatus;
//        this.checkIllegalReason = checkIllegalReason;
//        this.launchTime = launchTime;
//    }
//
//    /**
//     * 获取
//     *
//     * @return id
//     */
//    public Integer getId() {
//        return id;
//    }
//
//    /**
//     * 设置
//     *
//     * @param id：
//     */
//    public void setId(Integer id) {
//        this.id = id;
//    }
//
//    /**
//     * 获取
//     *
//     * @return title
//     */
//    public String getTitle() {
//        return title;
//    }
//
//    /**
//     * 设置
//     *
//     * @param title
//     */
//    public void setTitle(String title) {
//        this.title = title;
//    }
//
//    /**
//     * 获取
//     *
//     * @return content
//     */
//    public String getContent() {
//        return content;
//    }
//
//    /**
//     * 设置
//     *
//     * @param content：
//     */
//    public void setContent(String content) {
//        this.content = content;
//    }
//
//    /**
//     * 获取
//     *
//     * @return classification
//     */
//    public String getClassification() {
//        return classification;
//    }
//
//    /**
//     * 设置
//     *
//     * @param classification：
//     */
//    public void setClassification(String classification) {
//        this.classification = classification;
//    }
//
//    /**
//     * 获取
//     *
//     * @return publishUserId
//     */
//    public Integer getPublishUserId() {
//        return publishUserId;
//    }
//
//    /**
//     * 设置
//     *
//     * @param publishUserId：
//     */
//    public void setPublishUserId(Integer publishUserId) {
//        this.publishUserId = publishUserId;
//    }
//
//    /**
//     * 获取
//     *
//     * @return likeCount
//     */
//    public Integer getLikeCount() {
//        return likeCount;
//    }
//
//    /**
//     * 设置
//     *
//     * @param likeCount：
//     */
//    public void setLikeCount(Integer likeCount) {
//        this.likeCount = likeCount;
//    }
//
//    /**
//     * 获取
//     *
//     * @return reportStatus
//     */
//    public Integer getReportStatus() {
//        return reportStatus;
//    }
//
//    /**
//     * 设置
//     *
//     * @param reportStatus：
//     */
//    public void setReportStatus(Integer reportStatus) {
//        this.reportStatus = reportStatus;
//    }
//
//    /**
//     * 获取
//     *
//     * @return reportIllegalReason
//     */
//    public String getReportIllegalReason() {
//        return reportIllegalReason;
//    }
//
//    /**
//     * 设置
//     *
//     * @param reportIllegalReason：
//     */
//    public void setReportIllegalReason(String reportIllegalReason) {
//        this.reportIllegalReason = reportIllegalReason;
//    }
//
//    /**
//     * 获取
//     *
//     * @return checkStatus
//     */
//    public Integer getCheckStatus() {
//        return checkStatus;
//    }
//
//    /**
//     * 设置
//     *
//     * @param checkStatus：
//     */
//    public void setCheckStatus(Integer checkStatus) {
//        this.checkStatus = checkStatus;
//    }
//
//    /**
//     * 获取
//     *
//     * @return checkIllegalReason
//     */
//    public String getCheckIllegalReason() {
//        return checkIllegalReason;
//    }
//
//    /**
//     * 设置
//     *
//     * @param checkIllegalReason：
//     */
//    public void setCheckIllegalReason(String checkIllegalReason) {
//        this.checkIllegalReason = checkIllegalReason;
//    }
//
//    /**
//     * 获取
//     *
//     * @return launchTime
//     */
//    public Timestamp getLaunchTime() {
//        return launchTime;
//    }
//
//    /**
//     * 设置
//     *
//     * @param launchTime：
//     */
//    public void setLaunchTime(Timestamp launchTime) {
//        this.launchTime = launchTime;
//    }
//
//    @Override
//    public String toString() {
//        return "Question{id = " + id + ", title = " + title + ", content = " + content + ", classification = " + classification + ", publishUserId = " + publishUserId + ", likeCount = " + likeCount + ", reportStatus = " + reportStatus + ", reportIllegalReason = " + reportIllegalReason + ", checkStatus = " + checkStatus + ", checkIllegalReason = " + checkIllegalReason + ", launchTime = " + launchTime + "}";
//    }
//}
package com.zhangkunhao.notes.entity.Do;

import com.zhangkunhao.notes.annotation.TableField;
import com.zhangkunhao.notes.annotation.TableId;
import com.zhangkunhao.notes.annotation.TableName;

import java.sql.Timestamp;

/**
 * 问题
 *
 * @author 20642
 */
@TableName(name = "tb_question")
public class Question {
    @TableId(value = "id")
    private Integer id;

    private String title;
    private String content;
    /**
     * 分类
     */
    private String classification;
    @TableField(value = "publish_user_id")
    private Integer publishUserId;
    /**
     * 点赞数量
     */
    @TableField(value = "like_count")
    private Integer likeCount;
    /**
     * 问题的当前状态，1表示没有被举报,0表示被举报
     */
    @TableField(value = "report_status")
    private Integer reportStatus;
    /**
     * 问题的举报原因
     */
    @TableField(value = "report_illegal_reason")
    private String reportIllegalReason;

    /**
     * 问题的审核状态,0表示还没有经过审核，1表示经过审核，-1表示审核不通过
     */
    @TableField(value = "check_status")
    private Integer checkStatus;
    /**
     * 问题审核不通过的原因
     */
    @TableField(value = "check_illegal_reason")
    private String checkIllegalReason;
    /**
     * 问题的发布时间
     */
    @TableField(value = "launch_time")
    private Timestamp launchTime;

    public Question() {
        this.likeCount = 0;
        this.reportStatus = 1;
        this.reportIllegalReason = "无";
        this.checkStatus = 0;
        this.checkIllegalReason = "审核中";
        this.launchTime = new Timestamp(System.currentTimeMillis());
    }

    public Question(Integer id, String title, String content, String classification, Integer publishUserId, Integer likeCount, Integer reportStatus, String reportIllegalReason, Integer checkStatus, String checkIllegalReason, Timestamp launchTime) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.classification = classification;
        this.publishUserId = publishUserId;
        this.likeCount = likeCount;
        this.reportStatus = reportStatus;
        this.reportIllegalReason = reportIllegalReason;
        this.checkStatus = checkStatus;
        this.checkIllegalReason = checkIllegalReason;
        this.launchTime = launchTime;
    }

    /**
     * 获取
     *
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id：
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     *
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取
     *
     * @return content
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置
     *
     * @param content：
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取
     *
     * @return classification
     */
    public String getClassification() {
        return classification;
    }

    /**
     * 设置
     *
     * @param classification：
     */
    public void setClassification(String classification) {
        this.classification = classification;
    }

    /**
     * 获取
     *
     * @return publishUserId
     */
    public Integer getPublishUserId() {
        return publishUserId;
    }

    /**
     * 设置
     *
     * @param publishUserId：
     */
    public void setPublishUserId(Integer publishUserId) {
        this.publishUserId = publishUserId;
    }

    /**
     * 获取
     *
     * @return likeCount
     */
    public Integer getLikeCount() {
        return likeCount;
    }

    /**
     * 设置
     *
     * @param likeCount：
     */
    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    /**
     * 获取
     *
     * @return reportStatus
     */
    public Integer getReportStatus() {
        return reportStatus;
    }

    /**
     * 设置
     *
     * @param reportStatus：
     */
    public void setReportStatus(Integer reportStatus) {
        this.reportStatus = reportStatus;
    }

    /**
     * 获取
     *
     * @return reportIllegalReason
     */
    public String getReportIllegalReason() {
        return reportIllegalReason;
    }

    /**
     * 设置
     *
     * @param reportIllegalReason：
     */
    public void setReportIllegalReason(String reportIllegalReason) {
        this.reportIllegalReason = reportIllegalReason;
    }

    /**
     * 获取
     *
     * @return checkStatus
     */
    public Integer getCheckStatus() {
        return checkStatus;
    }

    /**
     * 设置
     *
     * @param checkStatus：
     */
    public void setCheckStatus(Integer checkStatus) {
        this.checkStatus = checkStatus;
    }

    /**
     * 获取
     *
     * @return checkIllegalReason
     */
    public String getCheckIllegalReason() {
        return checkIllegalReason;
    }

    /**
     * 设置
     *
     * @param checkIllegalReason：
     */
    public void setCheckIllegalReason(String checkIllegalReason) {
        this.checkIllegalReason = checkIllegalReason;
    }

    /**
     * 获取
     *
     * @return launchTime
     */
    public Timestamp getLaunchTime() {
        return launchTime;
    }

    /**
     * 设置
     *
     * @param launchTime：
     */
    public void setLaunchTime(Timestamp launchTime) {
        this.launchTime = launchTime;
    }

    @Override
    public String toString() {
        return "Question{id = " + id + ", title = " + title + ", content = " + content + ", classification = " + classification + ", publishUserId = " + publishUserId + ", likeCount = " + likeCount + ", reportStatus = " + reportStatus + ", reportIllegalReason = " + reportIllegalReason + ", checkStatus = " + checkStatus + ", checkIllegalReason = " + checkIllegalReason + ", launchTime = " + launchTime + "}";
    }
}
